<%@ page language="java" import="java.util.*" pageEncoding="utf8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
  <head>
    <title>添加快递单</title>
	<script type="text/javascript" src="js/jquery-latest.js"></script>    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<style type="text/css">
		.leftPane{
			float: left;
			width: 400px;
			height: 800px;
		}
	</style>
	<script type="text/javascript">
		function saveas(expressId) {
			$.get('./express/copyExpress.action?express.id=' + expressId);
		}
		
		function deleteExpress(expressId) {
			$.get("./express/deleteExpress.action?express.id=" + expressId, function(data) {
				alert(data);
			});
		}
	</script>
  </head>
  
  <body>
  <s:form action="" method="">
  <table border="1" align="center">
  	<tr>
  		<td colspan="6">
  			<a href="./express/addExpress.jsp">添加快递单</a>
  		</td>
  	</tr>
  	<s:iterator value="#session.expressList" var="express">
  		<tr>
  			<td>${express.id }</td>
  			<td>${express.name }</td>
  			<td>${express.codeName }</td>
  			<td><span onclick="saveas(${express.id });">SavaAS</span></td>
  			<td><a href="./express/editExpress.action?express.id=${express.id }">编辑</a></td>
  			<td><span onclick="deleteExpress(${express.id });">删除</span></td>
  		</tr>
  	</s:iterator>
  </table>
  
  </s:form>
  </body>
</html>
